package mc.support.web.service;

import java.util.Map;

/**
 * Created with IntelliJ IDEA. <br/>
 * Author: francis Yun    <br/>
 * Date: 2013-11-29  <br/>
 */
public interface IServiceRouter {

    public Object route(Class<?> interfaceType, Object service, Map<String, Object> params);
    public Object route(Object service, Map<String, Object> params);

    public void registerParamResolver(String paramKey, ParamResolver paramResolver);
    public ParamResolver unregisterParamResolver(String paramKey);

    public void registerGlobalParamResolver(String paramKey, ParamResolver paramResolver);
    public ParamResolver unregisterGlobalParamResolver(String paramKey);

    public void enableGlobalServiceCache(boolean enable);

}
